/***************************************************************************
 创建者: 华磊
 开始时间: 2020.8.14
 copyright: (C) 深圳市华友高科有限公司
 修改说明: (每次有修改就添加一条，带有 修改人，修改时间，修改描述)
 example (1) hualei 2020.5.8 类的具体实现代码编写

 ***************************************************************************
 *  @file x.h
 *  功能:
 *
 *                                                                         *
 ***************************************************************************/
#ifndef VEHICLEITEM_H
#define VEHICLEITEM_H

#include <QGraphicsItem>
#include <qpainter.h>
#include <qobject.h>

/**
 * @brief The VehicleItem class
 */
class VehicleItem : public QObject,  public QGraphicsItem
{
    Q_OBJECT
public:
    explicit VehicleItem(QObject *parent = 0);

public:
    int setPosition(double x,double y,double a);

    void timerEvent();

signals:

public slots:



protected:
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

private:
    QRectF boundingRect() const;

private:

    QPixmap carPicture;
    double position_x;
    double position_y;
    double position_a;


};

#endif // VEHICLEITEM_H
